Fix the error recovery at the undo_out label in __gnttab_map_grant_ref to
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 9 Jan 2006 11:17:55 +0000 (11:17 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 9 Jan 2006 11:17:55 +0000 (11:17 +0000)
not unlock the spinlock twice (which causes a BUG).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
xen/common/grant_table.c

index 4622007c6a85c2cc28afc0310599c212357d1a62..3a7b63a95eeae19201077fdc39e5d05934a32cc6 100644 (file)
@@ -312,8 +312,6 @@ __gnttab_map_grant_ref(
     if ( !act->pin )
         clear_bit(_GTF_reading, &sha->flags);
 
-    spin_unlock(&rd->grant_table->lock);
-
  unlock_out:
     spin_unlock(&rd->grant_table->lock);
     (void)__put_user(rc, &uop->status);